Ext.define('Admin.view.emergencyDispatch.WaterQualityViewModel', {
	extend: 'Ext.app.ViewModel',
	alias: 'viewmodel.waterQuality',
	data: {
		curList: '',
	},
	formulas: {
		datype: function (get) {
			var data = get('curList').daType;
			var result = getValue('datype', data);
			return result;
		},

		rnm: function (get) {

			var data = get('curList').rcd;
			var result;
			mriverList.forEach(function (item) {
				if (item.rcd == data) {
					result = item.rnm
				}
			})
			return result;
		}
	}

});